﻿<UserControl x:Class="Coolvis.Console.Theme.MainViewControl.Header"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:convert="clr-namespace:Coolvis.Console.Theme.MainViewControl"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="41" d:DesignWidth="1366">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Coolvis.Console.Theme;component/Resources/Green.xaml"/>
                <ResourceDictionary>
                    <Style x:Key="NoneBorderButton" TargetType="Button">
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="Button">
                                    <ContentPresenter Content="{TemplateBinding Content}"/>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid Background="{StaticResource ResourceKey=BrushGreen}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="auto"/>
        </Grid.ColumnDefinitions>
        <Image Source="../Resources/Images/logo.png" Margin="10,5,10,5" VerticalAlignment="Center" Grid.Column="0" />
        <Border Grid.Column="1" BorderBrush="#efefef" BorderThickness="1,0,0,0" Margin="0,5,0,5">
            <TextBlock Text="全息数据可视化平台" Foreground="#fff" VerticalAlignment="Center" FontFamily="微软雅黑" FontWeight="Bold" FontSize="20" Margin="5"  />
        </Border>
        <TextBlock x:Name="tbMessage" Text="2014年4月8日 星期二  欢迎，890678" VerticalAlignment="Center" Height="16" FontFamily="微软雅黑" FontWeight="Bold"
                   Foreground="#fff"
                   Margin="0,0,20,0"
                   Grid.Column="6"/>
        <Grid Grid.Column="7" Width="60">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <TextBlock IsHitTestVisible="False" Foreground="#fff" Text="CPU" FontSize="12" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="0" Grid.Column="0"/>
            <Grid Grid.Row="1" Grid.Column="0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="auto"/>
                </Grid.RowDefinitions>
                <TextBlock IsHitTestVisible="False" Foreground="#fff" Text="MEM" FontSize="12" TextWrapping="WrapWithOverflow" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="0"/>
                <TextBlock IsHitTestVisible="False" Foreground="#fff" Text="ORY" FontSize="9" TextWrapping="WrapWithOverflow" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1"/>
            </Grid>
            <TextBlock  Foreground="#fff" Text=":" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="0" Grid.Column="1"/>
            <TextBlock Foreground="#fff"  Text=":" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="1" Grid.Column="1"/>
            <TextBlock Name="_ctlTextCPU" Foreground="#fff" Text="0%" FontSize="12" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="0" Grid.Column="2"/>
            <TextBlock Name="_ctlTextMemory" Foreground="#fff" Text="0" FontSize="12" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="1" Grid.Column="2"/>
            <Grid Name="_ctlTextGCRuning" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" Grid.ColumnSpan="3" Background="#99FFFFFF" Visibility="Hidden">
                <TextBlock Text="Running" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            </Grid>
        </Grid>
        <Grid Grid.Column="8">
            <Button Name="_ctlBtnShowNetConnectionState" Click="_ctlBtnShowNetConnectionState_Click" Style="{StaticResource NoneBorderButton}">
                
            </Button>
        </Grid>
        <Label Content="帮助" VerticalAlignment="Center" FontSize="20" FontFamily="微软雅黑" FontWeight="Bold" Margin="0,0,20,0"
               Visibility="Collapsed"/>
        
    </Grid>
</UserControl>
